<?php
    if($blockSettings['position']!=""){
        $position = explode("x",$blockSettings['position']);
    } else {
        $position[0] = "";
        $position[1] = "";
        $position[2] = "";
        $position[3] = "";
    }
?>

<div class="block" id="block-<?php echo $blockSettings['ID'];?>" top="<?php echo $position[0]; ?>" left="<?php echo $position[1]; ?>" height="<?php echo $position[2]; ?>" width="<?php echo $position[3]; ?>">
    <h2><?php echo $blockSettings['title']; ?></h2>
    <div class="blockcontent"><?php echo $blockSettings['setting']; ?></div>
    <div class="blockfooterline"></div>
    <div class="blockfooter">
        <?php echo $blockSettings['type']; ?>
        <button id="delete-<?php echo $blockSettings['ID'];?>"></button>
        <button id="edit-<?php echo $blockSettings['ID'];?>"></button>
    </div>
</div>